package com.main.accountpermissionsmanagement.domain.account.repository;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.main.accountpermissionsmanagement.domain.account.entity.Account;
import com.main.accountpermissionsmanagement.domain.account.repository.mapper.AccountMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccountRepository extends ServiceImpl<AccountMapper, Account> {
    public Long getAccountNumberMax() {return baseMapper.getAccountNumberMax(); }
    public List<Account> findByNumber(String number) {return baseMapper.findByNumber(number); }
    public List<Long> findByPhone(String phone) {return baseMapper.findByPhone(phone); }
    public List<Account> findByUserId(Long userId) {return baseMapper.findByUserId(userId); }
    public List<Account> findByUserIds(List<Long> userIdList) {return baseMapper.findByUserIds(userIdList); }
}
